package com.xand.bt.terminal.ui;

import java.awt.Frame;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import com.xand.bt.terminal.main.BitcoinTerminal;

public class MainWindowListener implements WindowListener {

	public void windowActivated(WindowEvent arg0) {
		
	}

	public void windowClosed(WindowEvent event) {
	}

	public void windowClosing(WindowEvent event) {
		
		BitcoinTerminal terminal = BitcoinTerminal.getInstance();
		terminal.exit();
		
	}

	public void windowDeactivated(WindowEvent arg0) {
		
	}

	public void windowDeiconified(WindowEvent arg0) {
		
	}

	public void windowIconified(WindowEvent arg0) {
		
	}

	public void windowOpened(WindowEvent arg0) {
		
	}
	
}
